import request from '@/utils/request'

// 查询维修员列表
export function listFixman(query) {
  return request({
    url: '/rcgl/fixman/list',
    method: 'get',
    params: query
  })
}

export function listFixmanAll(query) {
  return request({
    url: '/rcgl/fixman/listAll',
    method: 'get',
    params: query
  })
}

// 查询维修员详细
export function getFixman(fixmanId) {
  return request({
    url: '/rcgl/fixman/' + fixmanId,
    method: 'get'
  })
}

// 新增维修员
export function addFixman(data) {
  return request({
    url: '/rcgl/fixman',
    method: 'post',
    data: data
  })
}

// 修改维修员
export function updateFixman(data) {
  return request({
    url: '/rcgl/fixman',
    method: 'put',
    data: data
  })
}

// 删除维修员
export function delFixman(fixmanId) {
  return request({
    url: '/rcgl/fixman/' + fixmanId,
    method: 'delete'
  })
}
